package br.gov.ce.fortaleza.cti.web.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import br.gov.ce.fortaleza.cti.entity.Escola;
import br.gov.ce.fortaleza.cti.service.EscolaService;


@Scope("session")
@Component("geoBean")
public class EscolaBean extends EntityBean<Integer, Escola> {

	@Autowired
	private EscolaService service;

	protected Integer retrieveEntityId(Escola entity) {
		return entity.getId();
	}

	protected EscolaService retrieveEntityService() {
		return this.service;
	}

	protected Escola createNewEntity() {
		return new Escola();
	}
}